package org.xi.maple.sink;

import org.xi.maple.api.SinkConfig;

import java.util.HashMap;
import java.util.Map;

public class HiveConfig extends SinkConfig {

    private String targetDatabase;
    private String targetTable;
    private String saveMode = "overwrite";
    private Boolean strongCheck = true;
    private Integer numPartitions = 10;
    private Map<String, String> options = new HashMap<>();

    public String getTargetDatabase() {
        return targetDatabase;
    }

    public void setTargetDatabase(String targetDatabase) {
        this.targetDatabase = targetDatabase;
    }

    public String getTargetTable() {
        return targetTable;
    }

    public void setTargetTable(String targetTable) {
        this.targetTable = targetTable;
    }

    public String getSaveMode() {
        return saveMode;
    }

    public void setSaveMode(String saveMode) {
        this.saveMode = saveMode;
    }

    public Boolean getStrongCheck() {
        return strongCheck;
    }

    public void setStrongCheck(Boolean strongCheck) {
        this.strongCheck = strongCheck;
    }

    public Integer getNumPartitions() {
        return numPartitions;
    }

    public void setNumPartitions(Integer numPartitions) {
        this.numPartitions = numPartitions;
    }

    public Map<String, String> getOptions() {
        return options;
    }

    public void setOptions(Map<String, String> options) {
        this.options = options;
    }
}
